import request from "utils/request";

/*
  获取所有的频道
*/
export const getChannels = () => {
  return request({
    url: "v1_0/channels",
    method: "get",
  });
};

/*
  data: {}
  获取所有的频道
*/
export const getArticleList = data => {
  return request({
    url: "v1_0/mp/articles",
    method: "get",
    params: data,
  });
};
